<%@ page import="javafx.application.Application" %><%--
  Created by IntelliJ IDEA.
  User: zsh
  Date: 2020/9/9
  Time: 23:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
${pageContext}
<a href="${pageContext.request.contextPath}/test/testScope.jsp">testScope</a>
<%
  pageContext.setAttribute("pageContext","pageContext对象的数据");
  request.setAttribute("request","requestt对象的数据");
  session.setAttribute("session","session对象的数据");
  application.setAttribute("application","application对象的数据");
%> <br>
通过jsp表达式获取各个域对象中的数据：<br>
pageContext:<%=pageContext.getAttribute("pageContext")%><br>
request:<%=request.getAttribute("request")%><br>
session:<%=session.getAttribute("session")%><br>
application:<%=application.getAttribute("application")%><br>

通过EL表达式获取各个域对象中的数据 <br>
pageContext: ${pageScope.pageContest}<br>
  request: ${requestScope.request}<br>
  session: ${sessionScope.session}<br>
  application; ${applicationScope.application}<br>

  通过jsp表达式获取域对象中不存在的数据
   <%=pageContext.getAttribute("test")%><br>

通过EL表达式获取各个域对象中不存在的数据 <br>

  ${pageScope.text}
  </body>
</html>
